package com.kamistoat.meimeistore.product.feign;

import com.kamistoat.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("meimeistore-web-backstage-ware")
public interface WareFeignService {

    /**
     * 查询是否有库存。返回Map<SkuId, hasStock>
     * @param skuIdList
     * @return
     */
    @RequestMapping("meimeistoreware/waresku/hasStock")
    R hasStock(@RequestBody List<Long> skuIdList);
}
